{{include file="header_inc.html"}}
<script type="text/javascript">
<!--
	$(function() {
		$.formValidator.initConfig({
			formid : "myform",
			autotip : true,
			onerror : function(msg, obj) {
				window.top.art.dialog({
					content : msg,
					lock : true,
					width : '200',
					height : '50'
				}, function() {
					this.close();
					$(obj).focus();
				})
			}
		});
		$("#name").formValidator({
			onshow : "请输入菜单名称",
			onfocus : "请输入菜单名称",
			oncorrect : "输入正确"
		}).inputValidator({
			min : 1,
			onerror : "请输入菜单名称"
		});
		$("#controller").formValidator({
			onshow : "请输入功能地址",
			onfocus : "请输入功能地址",
			oncorrect : "输入正确"
		}).inputValidator({
			min : 1,
			onerror : "请输入功能地址"
		});
	})
//-->
</script>
<body>
	<div class="subnav">
		<div class="content-menu ib-a blue line-x">
			<a href='/setting/adminmenu/menumanage/'><em>菜单管理</em></a><span>|</span>
			<a href='javascript:;' class="on"><em>编辑菜单</em></a>
		</div>
	</div>
	<form name="myform" id="myform" action="/setting/adminmenu/edit/"
		method="post">
		<div class="common-form">

			<table width="100%" class="table_form contentWrap">
				<tr>
					<th width="200">上级菜单：</th>
					<td><select name="info[parentid]" style="width: 200px;">
							<option value="0">作为一级菜单</option> {{$select_categorys}}
					</select></td>
				</tr>
				<tr>
					<th>菜单名称：</th>
					<td><input type="text" name="info[name]" id="name"
						value="{{$Menu_info.name}}" class="input-text"></td>
				</tr>
				<tr>
					<th>功能地址：</th>
					<td><input type="text" name="info[controller]" id="controller"
						value="{{$Menu_info.controller}}" class="input-text"></td>
				</tr>
				<tr>
					<th>附加参数：</th>
					<td><input type="text" name="info[data]" class="input-text"
						value="{{$Menu_info.data}}"></td>
				</tr>
				<tr>
					<th>是否显示菜单：</th>
					<td><input type="radio" name="info[display]" value="1"
						{{if $Menu_info.display==1}}checked{{/if}}> 是 <input
						type="radio" name="info[display]" value="0"
						{{if $Menu_info.display==0}}checked{{/if}}>否</td>
				</tr>
			</table>
			<!--table_form_off-->
		</div>
		<div class="bk15"></div>
		<div class="btn">
			<input name="id" type="hidden" value="{{$id}}"> <input
				type="submit" id="dosubmit" class="button" name="dosubmit"
				value="提 交" />
		</div>
	</form>
</body>
{{include file="footer.html"}}
